home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9865 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: ix.netcom.com!netnews
  2. From: faulkne1@ix.netcom.com(George R Faulkner )
  3. Newsgroups: comp.lang.c++
  4. Subject: How do I use BC++ DLL in VB and share global vars?
  5. Date: 4 Mar 1996 22:06:05 GMT
  6. Organization: Netcom
  7. Message-ID: <4hfpgd$t31@ixnews3.ix.netcom.com>
  8. NNTP-Posting-Host: ix-trn-nj1-06.ix.netcom.com
  9. X-NETCOM-Date: Mon Mar 04  2:06:05 PM PST 1996
  10.  
  11. Hi.  I'm creating a program in Windows which will be
  12. available in both 16-bit and 32-bit versions.  For
  13. both versions, I'm using Visual Basic for the main
  14. interface and some of the less speed-demanding
  15. routines, and Borland C++ 4.5 DLL routines for
  16. the speed-demanding routines.  I'd like to know
  17. how to do the following things:
  18.  
  19. #1. Share variables and entire arrays between the C++ DLL
  20. and the Visual Basic EXE.  I'm not just talking about
  21. passing the variables as parameters, I mean sharing
  22. them.  The variables should be global variables, both
  23. in the DLL and in the VB EXE.
  24. #2. Retain the values of global variables and arrays
  25. in the DLL between function calls from the EXE
  26. #3. Have a DLL routine to draw graphics to a specific
  27. VB form or control, specified by the VB EXE
  28.  
  29. Anybody know how to do these, if they can be done?
  30. Anybody have any work-arounds if these cannot
  31. be done?  Please respond my e-mail, I don't
  32. read this newsgroup very much.
  33. -- 
  34. Dave Faulkner
  35.  
  36. "With a name like Dave, it has to be good."
  37.